/* 直接搬你的 CSS，这里加了 scoped 保证只在此页面生效 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  /* 这里去掉 body 背景，改用父容器控制 */

}
.page-wrapper {
  min-height: 100vh;                 /* 占满视口高度 */
  display: flex;                     /* 开启flex布局 */
  justify-content: center;           /* 水平居中 */
  align-items: center;               /* 垂直居中 */
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
}
.contact-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
  background: white;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card-header {
  text-align: center;
  margin-bottom: 32px;
}
.card-header h1 {
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-header p {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.5;
}
.form-group {
  margin-bottom: 24px;
}
label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}
.required::after {
  content: ' *';
  color: #ef4444;
}
input[type='text'],
input[type='email'],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  color: #1f2937;
  background-color: #f9fafb;
  transition: all 0.3s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.submit-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}
.submit-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}
.submit-button:active {
  transform: translateY(0);
}
@media (max-width: 600px) {
  .contact-card {
    padding: 30px 20px;
  }
  .card-header h1 {
    font-size: 24px;
  }
}